package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysPropertyContractMapper;
import com.ruoyi.system.domain.SysPropertyContract;
import com.ruoyi.system.service.ISysPropertyContractService;

/**
 * 房源合同id关联表Service业务层处理
 * 
 * @author ssd
 * @date 2024-04-04
 */
@Service
public class SysPropertyContractServiceImpl implements ISysPropertyContractService 
{
    @Autowired
    private SysPropertyContractMapper sysPropertyContractMapper;

    /**
     * 查询房源合同id关联表
     * 
     * @param propertyId 房源合同id关联表主键
     * @return 房源合同id关联表
     */
    @Override
    public SysPropertyContract selectSysPropertyContractByPropertyId(Long propertyId)
    {
        return sysPropertyContractMapper.selectSysPropertyContractByPropertyId(propertyId);
    }

    /**
     * 查询房源合同id关联表列表
     * 
     * @param sysPropertyContract 房源合同id关联表
     * @return 房源合同id关联表
     */
    @Override
    public List<SysPropertyContract> selectSysPropertyContractList(SysPropertyContract sysPropertyContract)
    {
        return sysPropertyContractMapper.selectSysPropertyContractList(sysPropertyContract);
    }

    /**
     * 新增房源合同id关联表
     * 
     * @param sysPropertyContract 房源合同id关联表
     * @return 结果
     */
    @Override
    public int insertSysPropertyContract(SysPropertyContract sysPropertyContract)
    {
        return sysPropertyContractMapper.insertSysPropertyContract(sysPropertyContract);
    }

    /**
     * 修改房源合同id关联表
     * 
     * @param sysPropertyContract 房源合同id关联表
     * @return 结果
     */
    @Override
    public int updateSysPropertyContract(SysPropertyContract sysPropertyContract)
    {
        return sysPropertyContractMapper.updateSysPropertyContract(sysPropertyContract);
    }

    /**
     * 批量删除房源合同id关联表
     * 
     * @param propertyIds 需要删除的房源合同id关联表主键
     * @return 结果
     */
    @Override
    public int deleteSysPropertyContractByPropertyIds(Long[] propertyIds)
    {
        return sysPropertyContractMapper.deleteSysPropertyContractByPropertyIds(propertyIds);
    }

    /**
     * 删除房源合同id关联表信息
     * 
     * @param propertyId 房源合同id关联表主键
     * @return 结果
     */
    @Override
    public int deleteSysPropertyContractByPropertyId(Long propertyId)
    {
        return sysPropertyContractMapper.deleteSysPropertyContractByPropertyId(propertyId);
    }
}
